import {
    createRouter,
    createWebHistory
} from 'vue-router'
const routes = [{
        path: '/z-house',
        name: "z-house",
        component: () => import('../views/more/house.vue'),
        children: [{
                path: '/z-house/zmy-one',
                name: 'home',
                component: () => import('../views/more/morespoint.vue')
            },
            {
                path: '/z-house/zmy-closemap',
                name: 'zmy-closemap',
                component: () => import('../views/more/morebody/closemap.vue')
            },
        ]
    }, {
        path: '/account',
        name: "account",
        component: () => import('../components/account.vue')
    }, {
        path: '/safe',
        name: "safe",
        component: () => import('../components/safe.vue')
    }, {
        path: '/pay',
        name: "pay",
        component: () => import('../components/pay.vue')
    }, {
        path: '/personal',
        name: 'personal',
        component: () => import('../components/personal/personal.vue')
    }, {
        path: '/preferences',
        name: 'preferences',
        component: () => import('../components/preferences.vue')
    }

]
const router = createRouter({
    history: createWebHistory(),
    routes
})
//全局守卫
router.beforeEach((to, from, next) => {
    next()
})

router.beforeResolve((to, from, next) => {
    next()
})

router.afterEach((to, from) => {

})

export default router